package com.lin.mapper;

import com.lin.model.FriendlyLink;
import com.lin.utils.MyMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
 * 友情链接Mapper
 * @author lkmc2
 */
@Mapper
public interface FriendlyLinkMapper extends MyMapper<FriendlyLink> {

    Logger logger = LoggerFactory.getLogger(FriendlyLinkMapper.class);

    default List<FriendlyLink> newestLinkList(int limit) {
        logger.info("Fetching newest friendly links, limit: {}", limit);
        // 数据库操作
        return null; // Replace with actual database operation
    }

    // 其他方法
}